<jsp:include page="template_header.jsp" />

<div class="span9">
	<!-- /write your content -->
	<div class="page-header">
		<h3>View Customer Account</h3>
		<h4>Information of Customer</h4>
	</div>
	<div class="well">
		<table class="table table-bordered">
		<tbody>
			<tr>
				<td style = "text-align:left;"><b>First Name:</b><td>
				${customer.firstname}
			</tr>
			<tr>
				<td style = "text-align:left;"><b>Last Name:</b><td>
				${customer.lastname}
			</tr>
			<tr>
				<td style = "text-align:left;"><b>Address:</b></td>
				<td style = "text-align:left;"> ${customer.addrLine1} , ${customer.addrLine2}</td>
	 		</tr>
	    
			<tr>
				<td style = "text-align:left;"><b>Date of the Last Trading Day:</b></td>
				<td style = "text-align:left;">${latestExDate}</td>
			</tr>
		
			<tr>
				<td style = "text-align:left;"><b>Cash Balance:</b></td>
				<td style = "text-align:left;">${cash}</td>
			</tr>
		</tbody> 
		</table>
			<!--  <label class="control-label" for="customerID">Number of Shares of Each Fund Owned:</label>	 -->
			<table class="table table-bordered table-striped table-hover">
				<thead>
					<tr>
						<th>Fund Name</th>
						<th>Share</th>
						<th>Position Value</th>
					</tr>
				</thead>
				<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
				<tbody>
					<c:forEach var="position" items="${positions}">
						<tr>
							<td>${position.name}</td>
							<td>${position.getShareDouble()}</td>
							<td>${position.value}</td>

						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<!-- <div class="control-group">
					    <label class="control-label" for="customerID">The Value of that Position:</label>					       
					</div> -->
	</div>


<!-- /end your content-->

<jsp:include page="template_tail.jsp" />